import Type;

public class Attribute {

		public String id,name,visibility,type,asso;
		public Type t;
		
		public Attribute(){
			this.asso="";
		}
		
		public String getName(){
			return this.name;
		}
		
		public String getVisibility(){
			return this.visibility;
		}
		
		public void setVisibility(String v){
			this.visibility = v;
		}
		
		public void setName(String nom){
			this.name = nom;
		}
		
		public String getId(){
			return this.id;
		}
		
		
		public void setId(String id){
			this.id = id;
		}
		
		public String getAsso(){
			return this.asso;
		}
		
		
		public void setAsso(String asso){
			this.asso = asso;
		}
		
		public String getType(){
			return this.type;
		}
		
		public void setType(String type){
			this.type = type;
		}
		
		public Type getTypeA(){
			return this.t;
		}
		
		public void setTypeA(Type t){
			this.t = t;
		}
		
		public String print(){
			String s="";
			s = "\nNom : " + this.name +"\nId : " + this.id+"\nType : " + this.type+"\nVisiblility : "+ this.visibility + "\nType : "+this.t.print();
			if (!this.asso.equals("")){
				s=s+"\nAssossiaton : "+this.asso;
			}
			s = s+"\n";
			return s;
		}
	
}
